<?php
/*
 * This script provides an array list of all the users that are online.
 * 
 * */


require_once("../functions/connect_to_database.php");
	
function isOnlineArray(){
	$sql = "SELECT username FROM members WHERE isOnline = 1";
	$result = mysql_query($sql);
	while ($row = mysql_fetch_assoc($result)) {
	    $online_users[] = $row['username'];
	}
	return $online_users;
}

?>